﻿@{
    Layout = null;
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" dir="ltr">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Admin</title>
    <link href="/themes/admin/layout.css" type="text/css" rel="stylesheet" />
    <link href="/themes/share/koolbox/theme.css" rel="stylesheet" type="text/css" />    
    <script type="text/javascript" src="/scripts/admin.js"></script>
</head>
<body>
    <div class="page">
        <table style="border-spacing: 0; width: 100%">
            <tr>
                <td class="v-top panel-left">
                    <div id="logo" onclick="window.location='/'">
                    </div>
                    <ul class="address">
                        <li>
                            @Html.Link(ForumContext.GetAbsoluteUrl(ForumUrls.ADMIN_FORUM_MANAGER), ForumContext.GetText(LanguageSection.FORUM_MANAGER, "PAGE_NAME"))
                        </li>
                        <li>
                            @Html.Link(ForumContext.GetAbsoluteUrl(ForumUrls.ADMIN_ROLE_MANAGER), ForumContext.GetText(LanguageSection.ROLE_MANAGER, "PAGE_NAME"))
                        </li>
                        <li>
                            @Html.Link(ForumContext.GetAbsoluteUrl(ForumUrls.ADMIN_MODERATOR_MANAGER), ForumContext.GetText(LanguageSection.MODERATOR_MANAGER, "PAGE_NAME"))
                        </li>
                        <li>
                            @Html.Link(ForumContext.GetAbsoluteUrl(ForumUrls.ADMIN_IPLOCKS_MANAGER), ForumContext.GetText(LanguageSection.IPLOCKS, "PAGE_NAME"))
                        </li>
                    </ul>
                </td>
                <td class="p-l-10 v-top">
                    <div id="ajax-container">
                        @RenderBody()
                    </div>
                    <div id="footer">
                        <p class="text">
                            Powered by <a href="http://mvcforum.net" title="asp.net mvcforum open source">MvcForum.Net</a>
                            Version @ForumContext.Version<br />
                            @Html.Raw(ForumContext.GetText(LanguageSection.GLOBAL, "COPYRIGHT"))
                        </p>
                    </div>
                </td>
            </tr>
        </table>
    </div>
    <script type="text/javascript">


        $.address.state('/Admin/').init(function (e) {

            // Initializes the plugin
            $('.address a').address();

        }).change(function (e) {

            var u = ($.address.state() + e.value).replace('//', '/');
           // alert(u);
            if (u != $.address.state()) {
                // Selects the proper navigation link
                $('.address a').each(function () {

                    var _href = $(this).attr('href');

                    if (_href && u.indexOf(_href) >= 0) {
                        $(this).addClass('selected').focus();
                    } else {
                        $(this).removeClass('selected');
                    }
                });

                $.Ajax.load(u, { target: '#ajax-container' });
            }


        });
        
            
    </script>
</body>
</html>
